package cc.woori.mobile.podcast;

import java.util.Collection;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;

public class PodCastChannel extends Channel {
    @Element(name = "itunes:subtitle")
    private String subtitle;
    @Element(name = "itunes:author", required = false)
    private String author;
    @Element(name = "itunes:summary")
    private String summary;
    @Element(name = "itunes:image")
    private ImageUrl imageUrl;
    @Element
    private PodCastOwner owner;
    @Element(name = "itunes:explicit", required = false)
    private String explicit;
    @ElementList(inline = true, entry = "itunes:category", required = false)
    private Collection<PodCastCategory> categories;
    @ElementList(inline = true, entry = "item", required = false)
    private Collection<PodCastItem> item;

    public Collection<PodCastCategory> getCategories() {
	return categories;
    }

    public void setCategories(Collection<PodCastCategory> categories) {
	this.categories = categories;
    }

    public Collection<PodCastItem> getItem() {
	return item;
    }

    public void setItem(Collection<PodCastItem> item) {
	this.item = item;
    }

    // @Element(name = "itunes:owner")
    public PodCastOwner getOwner() {
	return owner;
    }

    public void setOwner(PodCastOwner owner) {
	this.owner = owner;
    }

    public String getSubtitle() {
	return subtitle;
    }

    public void setSubtitle(String subtitle) {
	this.subtitle = subtitle;
    }

    public String getAuthor() {
	return author;
    }

    public void setAuthor(String author) {
	this.author = author;
    }

    public String getSummary() {
	return summary;
    }

    public void setSummary(String summary) {
	this.summary = summary;
    }

    // @Element
    public ImageUrl getImageUrl() {
	return imageUrl;
    }

    public void setImageUrl(ImageUrl imageUrl) {
	this.imageUrl = imageUrl;
    }

    public String getExplicit() {
	if (explicit == null || explicit.equals("")) {
	    return "no";
	}
	return explicit;
    }

    public void setExplicit(String explicit) {
	this.explicit = explicit;
    }

}
